{if !empty($list)}
<table class="layui-table text-center" lay-size="sm">
    <tbody>
        <thead>
            <tr>
                <th width="100">图片</th>
                <th>订单号</th>
                <th>SKU</th>
                <th>数量</th>
                <th>重量</th>
            </tr>
        </thead>
        {volist name="list" id="item"}
        <tr>
            <td><img src="{$item.image_url}"></td>
            <td class="copy-text">{$sn}</td>
            <td class="copy-text">{$item.sku}</td>
            <td>{$item.qty}</td>
            {php}$weight = \app\common\service\product\ProductService::getInstance()->getTotalWeight(['sku' => $item['sku'], 'qty' => $item['qty']]);{/php}
            <td>{$weight}</td>
        </tr>
        {/volist}
    </tbody>
</table>
{/if}